﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="bean.userBean" %>

<link rel="stylesheet" href="css/cssHeaderFooter.css" type="text/css" />
	
<div class="header">
	<div style="width:900px; margin:0px auto;">
		<div class="headerTitle">
			<img src="image/logo.png" style="width: 126.8px;height: 56.8px">

		</div>
		<%
			userBean user = (userBean) session.getAttribute("user");	//拥有管理权限

			if(user==null || user.getUserName().equals("")){
				user=new userBean();
				user.setUserName("游客");
				user.setUserType("免登陆阅读");

			}
			String userName=user.getUserName();
			String userType = user.getUserType();
		%>
		<div class="headerUsername">
			<br><br><br>
			用户：<span style="color:#dc5d5d;"><%= userName%></span>&emsp;&ensp;
			权限：<span style="color:#dc5d5d;"><%= userType%></span>&emsp;&ensp;

			<span><a href="novelListManagerServlet">首页</a></span>&emsp;&ensp;
			<span><a href="userInfoManagerServlet">用户信息</a>&emsp;</span>
			<span><a href="Logout">退出</a></span>



		</div>
	</div>
</div>
    